//4.设计一个函数，统计字符串中大写字母的个数
#include<stdio.h>
int character(char c[])
{
	int num = 0;
	for(int i = 0; c[i] != '\0'; i++)
	{	
		if(c[i] >= 'A' && c[i] <= 'Z')
			num++;
	}
	return num;
}
int main()
{
	char c[] = "HELLO world";
	printf("大写字母个数为：%d个\n",character(c));
	return 0;
}
